package org.springframework.test.zhaohui;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.test.zhaohui.service.DataAccessService;

/**
 * DataAccessDemo
 *
 * @author zhaohui
 */
public class DataAccessDemo {

	public static void main(String[] args) {
		ApplicationContext ac = new ClassPathXmlApplicationContext("applicationContext.xml");
		DataAccessService service = ac.getBean(DataAccessService.class);
		service.exec();
		System.out.println("ok");
	}
}
